PositiveInt
Deprecated
Use the kotools.types.PositiveInt type instead.
Replace with
import kotools.types.PositiveInt
Content copied to clipboard
PositiveInt
Content copied to clipboard
Representation of positive integers, including zero.
Types
Link copied to clipboard
object Companion
Contains declarations for holding or building a PositiveInt.
Link copied to clipboard
Error thrown when creating a PositiveInt fails.
Functions
Link copied to clipboard
Link copied to clipboard
Returns this value decremented by one. If this value is the minimum, it returns the maximum value instead.
Link copied to clipboard
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Link copied to clipboard
Returns this value incremented by one. If this value is the maximum, it returns the minimum value instead.
Link copied to clipboard
Returns the negative of this value.